package com.imc.griebeler.power;

public class MultiPowerPoint implements PowerPoint{
	private final PowerPoint[] powerPoints;

	public MultiPowerPoint(PowerPoint[] powerPoints) {
		this.powerPoints = powerPoints;
	}
	
	@Override
	public void on() {
		for(PowerPoint pp : powerPoints)
			pp.on();
	}

	@Override
	public void off() {
		for(PowerPoint pp : powerPoints)
			pp.off();
	}
}
